package main

import (
	c "db_ping/config"
	"db_ping/email"
	"db_ping/task"
)

var config *c.Config

func init() {
	config = c.GetConfig("config.yml")
	email.InitEmail(&config.Yc.Mail)
}

func main() {
	task.Start(config)
	select {}
}
